<template>
  <div>
    <h1>我是二儿子</h1>
  </div>
</template>

<script>
export default {
  name: "",
  mounted(){
    //接受大哥的法拉利
    this.$bus.$on('car',(car)=>{
       console.log('感谢大哥送来的'+car);
    })
  }
};
</script>

<style scoped lang="less">
   div{
       width: 400px;
       height: 200px;
       background: skyblue;
       margin: 20px auto;
       h1{
           text-align: center;
       }
   }
</style>
